package com.czz.portal.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.czz.portal.entity.Order;
import com.czz.portal.query.OrderQuery;
import com.czz.portal.vo.BillVo;
import com.czz.portal.vo.OrderVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName: OrderService
 * @Author Czz
 * @Date 2020/2/9
 * @Time 16:29
 **/
public interface OrderService extends IService<Order> {
    OrderVo getOrderVoById(String id);
    List<OrderVo> getOrderPageList(Page<OrderVo> pageParam, OrderQuery orderQuery);
    void cancelOrderById(String id);
    List<BillVo> getBillVoPageList(Page<BillVo> pageParam, String userId);
    BigDecimal getUserTotalPaid(String userId);
    Integer isUserOrder(String userId,String periodId,String courseId);
    Integer isUserVideo(String userId, String videoId);
    void saveFreeOrder(Order order);
    void saveOrder(Order order);
}
